//
//  PTSShareToTencentQQ.h
//  QQLoginTestDemo

//  分享到QQ

//  Created by yozoo on 11/1/15.
//  Copyright © 2015 yozoo. All rights reserved.
//  

#import <Foundation/Foundation.h>
#import <TencentOpenAPI/TencentOAuth.h>
//#import <TencentOpenAPI/QQApi.h>

@interface PTSShareToTencentQQ : NSObject<TencentSessionDelegate>

@property(nonatomic ,strong)TencentOAuth *tencentOAuth;
@property(nonatomic ,strong)NSArray * permissions;

/**
 *  App key
 *
 *  @param appKey 填写在企鹅开发者中心申请的appkey
 */
-(void)PTSQQAppKey:(NSString *)appKey;

/**
 *  分享新闻内容到QQ或QQ空间
 *
 *  @param url                  你要分享的url
 *  @param title                你分享的内容的标题(最长128个字符)
 *  @param content              你要分享的详细内容(最长512个字符)
 *  @param sharePreviewImage    分享预览图片url
 *  @param isShareToQQZone      是否分享到QQ空间(YES:是  NO:分享到QQ)
 */
-(void)PTSShareNewsURLToQQ:(NSURL *)url shareTitle:(NSString *)title shareContent:(NSString *)content sharePreviewImage:(NSURL *)previewImageUrl isShareToQQZone:(BOOL)yesOrNo;

/**
 *  分享文本到QQ
 *
 *  @param text 文本
 */
-(void)PTSShareTextToQQ:(NSString *)text;

/**
 *  分享图片到QQ
 *
 *  @param pictureName 图片名字(字符串)
 *  @param title       标题
 *  @param content     详情
 */
-(void)PTSSharePictureToQQ:(NSString *)pictureName shareTitle:(NSString *)title shareContent:(NSString *)content;


/**
 *  登录QQ
 */
-(void)PTSLoginQQ;


@end
